package edu.ynu.se.xiecheng.achitectureclass.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;


@Getter
@Setter
@Entity
@Where(clause = "is_deleted = 0")
public class SoilSensor extends LogicEntity {
    @Column
    private Date timestamp;
    @Column
    private Integer dataType;
    @Column
    private String name;
    @Column
    private Integer value;
    @Column
    private String boxId;
    @Column
    private Integer status;
    @Column
    private Integer connState;
    @Column
    private Date connStateTimestamp;
}
